package com.jiantong.work.util;

/**
 * 开证辅助类 对照表
 * Created by mz03 on 2017/5/3.
 */
public class CertificateUtil {
    //场所类型对应
    public static final int BREED_FACTORY = 1;
    public static final int BUTCHER_FACTORY =2;
    public static final int TRADING_MARKET = 3;
    public static final int VILLAGE = 4;
    public static final int BREEDING_AQUATICS_VILLAGE= 5;
    public static final int OTHER = 6;

    public static final int PRODUCT_UNIT = 7;


    //规格单位id
    public static int unitShift(int id){
        switch(id)
        {
            case 1:id=103;  //头
                break;

            case 2:id=104;  //只
                break;

            case 3:id=105;  //羽
                break;

            case 7:id=106;  //公斤
                break;

 /*           case 4:id=108;  //张(皮)
                break;

            case 5:id=109;  //匹
                break;

            case 6:id=359;  //箱
                break;

            case 7:id=369;  //枚
                break;

            case 8:id=370;  //万粒
                break;

            case 9:id=371;  //剂
                break;
*/
            default:
                break;
        }
        return id;
    }

    //规格单位id
    public static String unitShiftName(int id){
        String dw = "";
        switch(id)
        {
            case 1:dw = "头";  //头
                break;

            case 2:dw = "只";  //只
                break;

            case 3:dw = "羽";  //羽
                break;

            case 7:dw = "Kg";  //公斤
                break;
            default:
                break;
        }
        return dw;
    }


    //产品种类
    public static int unitKind(int id){
        switch(id)
        {
            case 1:id=114;  //猪肉
                break;

            case 3:id=118;  //牛肉
                break;

            case 2:id=122;  //羊肉
                break;

            case 4:id=126;  //兔肉
                break;

            case 5:id=130;  //鸡肉
                break;

            case 6:id=133;  //鸭肉
                break;

            case 7:id=136;  //鹅肉
                break;

            case 8:id=139;  //鹌鹑
                break;

            case 9:id=143;  //鸽肉
                break;

            default:
                break;
        }
        return id;
    }
   public static String unitKindName(int id){
        String zl = "";
        switch(id)
        {
            case 1:zl="猪肉";  //猪肉
                break;

            case 3:zl="牛肉";  //牛肉
                break;

            case 2:zl="羊肉";  //羊肉
                break;

            case 4:zl="兔肉";  //兔肉
                break;

            case 5:zl="鸡肉";  //鸡肉
                break;

            case 6:zl="鸭肉";  //鸭肉
                break;

            case 7:zl="鹅肉";  //鹅肉
                break;

            case 8:zl="鹌鹑";  //鹌鹑
                break;

            case 9:zl="鸽肉";  //鸽肉
                break;

            default:
                break;
        }
        return zl;
    }

    //动物种类
    public static int kind(int id){
        switch(id) {
            case 1:
                id = 82;  //猪
                break;
            case 3:
                id = 83;  //牛
                break;
            case 2:
                id = 84;  //羊
                break;
            case 4:
                id = 85;  //兔
                break;
            case 5:
                id = 86;  //鸡
                break;
            case 6:
                id = 87;  //鸭
                break;
            case 7:
                id = 88;  //鹅
                break;
            case 8:
                id = 89;  //鹌鹑
                break;
            case 9:
                id = 91;  //鸽子
                break;
            case 10:
                id = 92;  //马
                break;
            case 11:
                id = 93;  //驴
                break;
            case 12:
                id = 94;  //猫
                break;
            case 13:
                id = 95;  //犬
                break;
            case 14:
                id = 96;  //蜂
                break;
            case 15:
                id = 98;  //骡子
                break;
            case 16:
                id = 99;  //骆驼
                break;
        }
        return id;
    }
  //动物种类
    public static String kindName(int id){
        String dw = "";
        switch(id) {
            case 1:
                dw = "猪";
                break;
            case 3:
                dw = "牛";  //牛
                break;
            case 2:
                dw = "羊";  //羊
                break;
            case 4:
                dw = "兔";  //兔
                break;
            case 5:
                dw = "鸡";  //鸡
                break;
            case 6:
                dw = "鸭";  //鸭
                break;
            case 7:
                dw = "鹅";  //鹅
                break;
            case 8:
                dw = "鹌鹑";  //鹌鹑
                break;
            case 9:
                dw = "鸽子";  //鸽子
                break;
            case 10:
                dw = "马";  //马
                break;
            case 11:
                dw = "驴";  //驴
                break;
            case 12:
                dw = "猫";  //猫
                break;
            case 13:
                dw = "犬";  //犬
                break;
            case 14:
                dw = "蜂";  //蜂
                break;
            case 15:
                dw = "骡子";  //骡子
                break;
            case 16:
                dw = "骆驼";  //骆驼
                break;
        }
        return dw;
    }

    //'用途 1:饲养;2:屠宰;3:展览;4:演出;5:比赛;6:其他',
    public static int use(int id){
        switch(id){
            case 10:
                id = 313;  //饲养
                break;
            case 20:
                id = 314;  //屠宰
                break;
            case 30:
                id = 320;  //展览
                break;
            case 40:
                id = 321;  //演出
                break;
            case 50:
                id = 322;  //比赛
                break;
            case 60:
                id = 324;  //其它
        }
        return id;
    }
 //'用途 1:饲养;2:屠宰;3:展览;4:演出;5:比赛;6:其他',
    public static String useS(int id){
        String string = "";
        switch(id){
            case 10:
                string= "饲养";  //饲养
                break;
            case 20:
                string = "屠宰";  //屠宰
                break;
            case 30:
                string = "展览";  //展览
                break;
            case 40:
                string = "演出";  //演出
                break;
            case 50:
                string = "比赛";  //比赛
                break;
            case 60:
                string = "其它";  //其它
        }
        return string;
    }


}









